﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Fake_Shop_WebApi.Models
{
    public class ApplicationUser:IdentityUser
    {
        //地址
        public string Address { get; set; }

        public ICollection<Order> Orders { get; set; }
        public ICollection<ShoppingCart> ShoppingCarts { get; set; }

        //用户角色
        public virtual ICollection<IdentityUserRole<string>> UserRoles { get; set; }
        //用户权限声明
        public virtual ICollection<IdentityUserRole<string>> Claims { get; set; }
        //用户第三方登录的信息
        public virtual ICollection<IdentityUserRole<string>> Logins { get; set; }
        //用户登录的Session
        public virtual ICollection<IdentityUserRole<string>> Tokens { get; set; }
    }
}
